/*
 * @Author: sxb
 * @Email: sxb@mail.com
 * @Date: 2020-05-29 10:28:09
 * @Descripttion: 小程序账号管理
 */ 
import request from '@/utils/request'

export function apiPostMiniUser(data){
    return new Promise((resolve, reject) => {
        request.post('api/miniUser', data).then(res => {
            resolve(res);
        }).catch(error => {
            reject(error)
        })
    })
}

export function apiDelMiniUser(data){
    return new Promise((resolve, reject) => {
        request.delete('api/miniUser', {data:data}).then(res => {
            resolve(res);
        }).catch(error => {
            reject(error)
        })
    })
}

export function apiPutMiniUser(data){
    return new Promise((resolve, reject) => {
        request.put('api/miniUser', data).then(res => {
            resolve(res);
        }).catch(error => {
            reject(error)
        })
    })
}